Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Http.​IBindableFromHttpContext<​TSelf>
Assembly: Microsoft.AspNetCore.Http.Abstractions
Defines a mechanism for creating an instance of a type from an <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> when binding parameters for an endpoint route handler delegate.
Methods
static
System.​Threading.​Tasks.​ValueTask<​TSelf>
BindAsync​(HttpContext context,
System.​Reflection.​ParameterInfo parameter)
Creates an instance of <typeparamref name="TSelf" /> from the <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> .
Returns The instance of <typeparamref name="TSelf" /> .
context
The <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> for the current request.
parameter
The <see cref="T:System.Reflection.ParameterInfo" /> for the parameter of the route handler delegate the returned instance will populate.